  <%=stylesheet_link_tag "ad landing page.css"-%>

        	<div class="comment">
            	<div class="comment-header">
                	Comments
                </div>
                <% @comments.each do |comment|-%>
                        <div class="comments-block">
                              <div>
                                   <%@user = User.find(:first , :conditions => { :id => comment.user_id})-%>
                                   <b><%=@user.name -%> Says</b>
                              </div>
                              <div class="comment-date">
                                   <%=comment.created_at.to_formatted_s(:long_ordinal)%>
                              </div>
                              <div>
                                   <%=comment.content%>
                              </div>
                      </div>
                             <div><hr size="1" color="#ffffff"></div>
                <%end -%>
                <div><hr size="1" color="#ffffff"></div>
                <div class="leave-a-comment">
                	Leave a comment
                </div>
                <div class="comment-fields">
                  
                    <% form_for :comment, :url => {:controller=>"view_advertisment", :action => "postcomment" , :id => params[:id], :university => params[:university] } do |comment_form| %>
                      <%= comment_form.text_field  :name ,:size => 45,:class=>"comment-name",:value=>"Your Name*",:maxlength=>"40" -%>
                      <br/>
                      <%= comment_form.text_field  :email ,:size => 45,:class=>"comment-email",:value=>"E-mail ID*(will not be published)*",:maxlength=>"40" -%>

                        <div class="comment-text">
                            <%= comment_form.text_area  :content , :size => "75x3"  ,:wrap=> "virtual",:value=>"Comment*"%>
                         
						</div>
                        <%=submit_tag "Submit Comment" -%>
                        <%end -%>
			</div>
            </div>